package com.imti.mall.product.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.imti.mall.model.pms.pojo.PmsProductCategoryAttributeRelation;
import com.imti.mall.product.mapper.PmsProductCategoryAttributeRelationDynaSqlProvider;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.UpdateProvider;

import java.util.List;

/**
 * ClassName: PmsProductCategoryAttributeRelationDao
 * Description:
 * date: 2022/9/19 10:11
 *
 * @author: youhun
 * @version:
 * @since JDK 1.8
 */
@Mapper
public interface PmsProductCategoryAttributeRelationDao extends BaseMapper<PmsProductCategoryAttributeRelation> {

    @UpdateProvider(type = PmsProductCategoryAttributeRelationDynaSqlProvider.class ,method = "updatePmsProductCategoryAttributeRelation")
    public boolean updatePmsProductCategoryAttributeRelation(PmsProductCategoryAttributeRelation pmsProductCategoryAttributeRelation);

    @SelectProvider(type = PmsProductCategoryAttributeRelationDynaSqlProvider.class ,method = "findPmsProductCategoryAttributeRelation")
    public List<PmsProductCategoryAttributeRelation> findPmsProductCategoryAttributeRelation(PmsProductCategoryAttributeRelation pmsProductCategoryAttributeRelation);
}
